<?php

namespace App\Models\OpenWechat;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

/**
 * Class WechatTemplateNotice
 *
 * @property string template_id
 *
 * @mixin Builder
 * @package App\Models\OpenWechat
 */
class WechatTemplateNotice extends Model
{
    /**
     * 微信模板库中模板的编号 , 给店员发送肤质检测服务的消息模板
     */
    const ID_SHORT_STORE_ADMIN = 'OPENTM412814206'; // title: 服务预约通知

    const ID_SHORT_LOTTERY = 'OPENTM411984357'; // title: 中奖结果通知

    const ID_SHORT_SKIN_RESULT = 'OPENTM416806656'; // title: 肌肤测试结果通知

    /**
     * IT 行业
     */
    const IT_ID_SHORT_STORE_ADMIN = 'OPENTM412003147'; // title: 服务预约通知
    const IT_ID_SHORT_LOTTERY = 'OPENTM411422270'; // title: 中奖结果通知
    const IT_ID_SHORT_SKIN_RESULT = 'OPENTM415279363'; // title: 肌肤测试结果通知

    /**
     * 消费品行业与IT行业的short_id映射关系
     */
    const CONSUMER_IT_MAP = [
        self::ID_SHORT_STORE_ADMIN => self::IT_ID_SHORT_STORE_ADMIN,
        self::ID_SHORT_LOTTERY => self::IT_ID_SHORT_LOTTERY,
        self::ID_SHORT_SKIN_RESULT => self::IT_ID_SHORT_SKIN_RESULT,
    ];


    protected $table = 'wechat_template_notices';

    protected $guarded = [];

}
